package UML_ER.diagram.part;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class UML_ERPerspectiveFactory implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		 // Get the editor area.
        String editorArea = layout.getEditorArea();

        // Top left: Resource Navigator view and Bookmarks view placeholder
        //IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,
        //        editorArea);
        //topLeft.addView(IPageLayout.ID_RES_NAV);
        //topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        
        //IFolderLayout Left = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50
        
        layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.25f, editorArea);
        layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_PROJECT_EXPLORER);

        // Bottom left: Outline view and Property Sheet view
        //IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50f,
        //bottomLeft.addView(IPageLayout.ID_OUTLINE);
        //bottomLeft.addView(IPageLayout.ID_PROP_SHEET);

        // Bottom right: Task List view
        
        layout.addView(IPageLayout.ID_PROP_SHEET, IPageLayout.BOTTOM, 0.66f, editorArea);

	}

}
